@keyframes twinkle {
    0% {
        opacity: 1;
    }
    100% {
        opacity: .1;
    }
}

.star {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 50%;
    left: 20%;
    clip-path: polygon(0% 50%,40% 40%,50% 0%,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%);
    background-color: #fff;
    opacity: .1;
    animation: twinkle .8s infinite alternate;
}

